﻿@model VehicleManagement.Models.DriverManager
@{
    ViewBag.Title = "Edit";
}
<link href="@Url.Content("~/Content/css/special.css")" rel="stylesheet" type="text/css" />
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
<div class="mas">
    <div class="toptitle">
        系统管理员管理平台
    </div>
    @*<div class="car"></div>*@
    @Html.Partial("_PartviewAdmin")
    <div class="rightshow">
        <h2>
        </h2>
        @using (Html.BeginForm("UploadHeadImage", "DriverManager", FormMethod.Post, new { enctype = "multipart/form-data" }))
        {
            @Html.HiddenFor(model => model.DriverManagerID)
            <div class="box-img">
                <div class="box-img-wrap">
                    @if (string.IsNullOrWhiteSpace(Model.Image))
                    {
                        <img src="../../Content/themes/base/DMSource/png-0840.png" />
                    }
                    else
                    {
                        <img src="/Photos/DriverManager/@Model.Image" />
                    }
                </div>
                <div class="a-wrap">
                    <input type="file" id="file" name="file" />
                    <input type="submit" value="上传" />
                </div>
            </div>
        }
        @using (Html.BeginForm())
        {
            @Html.ValidationSummary(true)
            <fieldset>
                <legend></legend>
                <div class="box">
                    <div class="box-title">
                        <span>@Html.ActionLink("返回负责人列表", "Index")</span>
                    </div>
                    <div class="box-detail">
                        <div class="box-detail1">
                            @Html.HiddenFor(model => model.LoginName)
                            <div class="box-detail1-linetype1 hide">
                                <span class="labeldisplay">@Html.LabelFor(model => model.DriverManagerID):</span>
                                @Html.EditorFor(model => model.DriverManagerID)@Html.ValidationMessageFor(model => model.DriverManagerID)
                            </div>
                            <div class="box-detail1-linetype1">
                                <span class="labeldisplay">@Html.LabelFor(model => model.Name):</span>
                                @Html.EditorFor(model => model.Name)@Html.ValidationMessageFor(model => model.Name)
                            </div>
                            <div class="box-detail1-linetype1">
                                <span class="labeldisplay">@Html.LabelFor(model => model.Sex):</span>
                                @Html.DropDownListFor(model => model.Sex, new SelectList(new[] { "男", "女" }, "男"))@Html.ValidationMessageFor(model => model.Sex)
                            </div>
                            <div class="box-detail1-linetype1">
                                <span class="labeldisplay">@Html.LabelFor(model => model.Email):</span>
                                @Html.EditorFor(model => model.Email)@Html.ValidationMessageFor(model => model.Email)
                            </div>
                            <div class="box-detail1-linetype1">
                                <span class="labeldisplay">@Html.LabelFor(model => model.Telephone):</span>
                                @Html.EditorFor(model => model.Telephone)@Html.ValidationMessageFor(model => model.Telephone)
                            </div>
                            <div class="box-detail1-linetype1">
                                <span class="labeldisplay">@Html.LabelFor(model => model.Password):</span>
                                @Html.EditorFor(model => model.Password)@Html.ValidationMessageFor(model => model.Password)
                                <input class="detail-input3" type="button" value="确认修改" />
                            </div>
                            <div class="box-detail1-linetype1">
                                <span class="labeldisplay">@Html.LabelFor(model => model.Remark):</span>
                                @Html.TextAreaFor(model => model.Remark)
                            </div>
                            <input class="button-DMEdit" type="submit" value="修 改" />
                        </div>
                    </div>
                </div>
            </fieldset>
        }
    </div>
    <div class="clear">
    </div>
</div>
